export default
{
	template: `
		<table>
			<thead>
				<th>编号</th>
				<th>商品名</th>
				<th>商品价格</th>
			</thead>
			<tr v-for="item in goods">
				<td>{{item.id}}</td>
				<td><a :href="#/list/item/"+item.id>{{item.title}}</td>
				<td>{{item.price}}</td>
			</tr>
		</table>
	`,
	data(){
		return {
			goods: [
				{id: 1, title: "iphone13", price: 2333},
				{id: 2, title: "iphone14", price: 3999},
				{id: 3, title: "iphone15", price: 6999},
				{id: 4, title: "iphone16", price: 9999}
			]
		}
	}
}